import request from '@/utils/request'

/**
 * 产业资源列表查询
 * @param params
 * @returns {*}
 */
export function getAttractInvestmentList(params) {
    return request({
        url: '/AttractInvestment/resources/selectPage',
        method: 'get',
        params
    })
}

/**
 * 产业资源新增
 * @param params
 * @returns {*}
 */
export function addAttractInvestmentList(data) {
    return request({
        url: '/AttractInvestment/resources/addIndustryResources',
        method: 'post',
        data
    })
}

/**
 * 根据id查询产业资源
 * @param data
 * @returns {*}
 */
export function selectAttractInvestmentOne(id) {
    return request({
        url: `/AttractInvestment/resources/selectOneById/${id}`,
        method: 'get',

    })
}

/**
 * 根据id修改产业资源
 * @param data
 * @returns {*}
 */
export function updateAttractInvestmentOne(data) {
    return request({
        url: '/AttractInvestment/resources/updateOneById',
        method: 'put',
        data
    })
}

/**
 * 导出接口
 * @param data
 * @returns {*}
 */
export function excelDownload(params) {
    return request({
        url: '/AttractInvestment/resources/export',
        method: 'get',
        params: params,
        responseType: 'blob'
    })
}
